package com.day2;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

public class Test02 {
}

/**
 * @author 13745
 */
@Target(value = {ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@interface B{
    int age() default 17;
    String[] name();

    Sex sex();

    F f();

}
/**
 * @author 13745
 */
@interface F{
    int age() default 0  ;
    int value();

}
@B(name = {"野猪佩奇","野猪乔治"},sex = Sex.NAME,f=@F(2))
class App{

}

enum Sex{
    TYPE,NAME,AGE
}


